Skip to content

Conversation

@hoyahozz
Copy link
Member

@hoyahozz hoyahozz commented Apr 3, 2025

📝 작업 내용

  • Closes [TNT-273] 텍스트 string resource 적용 #137

  • API단에서 내려주는 문자열과, 애플리케이션 자체적으로 제공하는 문자열 리소스 중 한 가지를 동적으로 선택하여 화면상으로 출력해야 하는 경우가 있습니다.

    • 해당 상황에서 명확하고 단순하게 사용 가능한 DisplayText 를 구현하였습니다.

📸 실행 화면

  • UI 변경사항 없습니다!

🙆🏻 리뷰 요청 사항

  • 협의가 필요한 사항
    1. core 하게 애플리케이션 전체에서 사용하는 문자열 리소스의 경우, 접두사에 core 를 붙이는거 어떻게 생각하시나요?
    2. 기존에는 alias 를 통해 coreR 형태로 자주 사용했었는데, 일일이 붙여주는 것도 번거롭고 사람마다 다르게 붙일 여지가 있어보여요.
      • 현재 PR과 같이 그냥 리소스 자체를 import 하는거 어떻게 생각하시나요? ㅎㅎ

👀 레퍼런스

@hoyahozz hoyahozz added ♻️ Refactor 코드 리팩토링 🌲 정호 김씨 집안 큰행님 김정호 labels Apr 3, 2025
@hoyahozz hoyahozz self-assigned this Apr 3, 2025
@hoyahozz hoyahozz requested a review from SeonJeongk May 6, 2025 04:55
Copy link
Contributor

@SeonJeongk SeonJeongk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다요! 깔끔하니 좋네요👍
트레이니 화면들에도 적용해보겠습니다

Comment on lines 5 to 6
<string name="session_expired">세션이 만료되었어요</string>
<string name="session_expired_description">장시간 미사용으로 로그인 화면으로 이동해요</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

접두사로 core 붙이는거 좋습니다! 그럼 얘네도 core를 붙여야 하지 않을까용?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0dc616c

수정 완료하였습니다!

@hoyahozz hoyahozz marked this pull request as ready for review July 6, 2025 10:26
@hoyahozz hoyahozz requested a review from SeonJeongk July 6, 2025 10:26
Copy link
Contributor

@SeonJeongk SeonJeongk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생 많으셨습니다! 🙌
수정 사항이랑 궁금한 점 몇 가지 리뷰 남겨뒀습니다.
확인하시고 문제 없으면 바로 머지해주세요!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

왁.. 진짜 고생하셨습니다🥹

Comment on lines 7 to 8
<string name="core_terms_of_service">서비스 이용약관</string>
<string name="core_privacy_policy">개인정보 처리방침</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core 모듈의 문자열 리소스를 사용하지 않고 따로 추가해두신 이유가 있을까요??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얽 잘못 넣어뒀네요! 제거 완료하였습니다.!

Comment on lines 52 to 54
import co.kr.tnt.core.designsystem.R
import co.kr.tnt.core.designsystem.R.drawable.ic_close
import co.kr.tnt.core.designsystem.R.drawable.ic_image
import co.kr.tnt.core.designsystem.R.drawable.ic_overlay_close
Copy link
Contributor

@SeonJeongk SeonJeongk Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drawable을 개별 import로 쓰신 이유가 가독성 때문일까요?
앞으로 core 모듈의 문자열, 이미지 리소스들은 전부 개별 import 방식으로 통일해 사용하는 건지 궁금합니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[안드로이드 팀 합의]

  • ui > core 모듈 내에 위치한 문자열 / 이미지 리소스 사용 시 개별 import 방식으로 사용하도록 협의
  • 모듈 내에 위치한 R 을 사용할 때만 R.string.~ 형태로 사용하도록 협의

@hoyahozz hoyahozz merged commit bae179a into develop Aug 9, 2025
7 checks passed
@hoyahozz hoyahozz deleted the refactor/TNT-273 branch August 9, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor 코드 리팩토링 🌲 정호 김씨 집안 큰행님 김정호

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TNT-273] 텍스트 string resource 적용

3 participants